package com.unittec.drainage.sdk.manage.enums;

/**
 * @author Jason
 * @date 2020/10/20
 */
public enum WaterheadUserWaterNatureEnum {

    water_nature_1("1", "工业用水"),
    water_nature_2("2", "行政事业用水"),
    water_nature_3("3", "居民生活用水"),
    water_nature_4("4", "经营服务用水"),
    water_nature_5("5", "特种行业用水");

    private String key;
    private String value;

    private WaterheadUserWaterNatureEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return this.key;
    }

    public String getValue() {
        return this.value;
    }

    public static WaterheadUserWaterNatureEnum convertLevel(String key) {
        WaterheadUserWaterNatureEnum[] list = values();
        for (WaterheadUserWaterNatureEnum planType : list) {
            if (planType.getKey().equals(key)) {
                return planType;
            }
        }
        return null;
    }

}
